() of () is a reporter block and an Operators block. It reports the result of some math functions.
([sqrt V] of (10))
Options
- abs: The absolute value or magnitude. Negative numbers get converted to positive, but positive numbers remain positive.
- neg: Negates the value. Positive numbers are converted into negative and vice versa.
- sign: Signum. Positive values report 1, negative reports -1, and zero reports 0.
- ceiling: Rounds decimals up. For example, 3.6 is rounded up to 4.
- floor: Rounds decimals down. For example, 3.6 is rounded down to 3.
- sqrt: Square root.
- sin: Sine. Degrees are used.
- cos: Cosine.
- tan: Tangent.
- asin
- acos
- atan
- ln: Natural logarithm, which is the logarithm of e (Euler's number).
- log: Decimal logarithm, which is the logarithm of 10.
- lg: Binary logarithm, which is the logarithm of 2.
- e^: Euler's number to the power of ().
- 10^
- 2^
- id: Identity, which reports the input. Useful for creating deep copies of lists, whereas without it will be a shallow copy.
Workarounds
Function | Workaround |
---|
abs | ((x) × ([sign V] of (x))) |
neg | ((0) - (x)) or ((x) × (-1)) |
sqrt | ((x) ^ (0.5)) |
2^ | ((2) ^ (x)) |
10^ | ((10) ^ (x)) |
See Also